package com.wing.user.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wing.user.dao.UserRoleDao;
import com.wing.user.model.entity.Role;
import com.wing.user.model.entity.UserRole;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户角色-ServiceImpl
 *
 * @author
 */
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleDao, UserRole> implements UserRoleService {

    @Override
    public List<Role> listByUserId(Long userId) {
        return baseMapper.roleListByUserId(userId);
    }
}
